package me.wangshier.restapi.taco.data;


import me.wangshier.restapi.taco.domian.TacoOrder;
import me.wangshier.restapi.taco.domian.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface OrderRepository
        extends CrudRepository<TacoOrder, Long> {

    List<TacoOrder> findByUserOrderByPlacedAtDesc(
            User user, Pageable pageable);

}